package HomeWork3;

public class Dog extends Animaal implements Swim{
    Dog(String name,int age,String color){
        super(name,age,color);
    }
    void lookDoor(){
        System.out.println("正在看门的"+name+"是"+color+"色"+age+"岁的小狗");
    }
    public void eat() {
        System.out.println("正在啃骨头的"+name+"是"+color+"色"+age+"岁的小狗");
    }
    public void swim() {
        System.out.println("正在游泳的"+name+"是"+color+"色"+age+"岁的小狗");
    }
}
